package catchData.startup;

import java.util.ArrayList;
import java.util.List;

import catchData.core.DoPostBack1;

//import org.apache.log4j.Logger;

/**
 * @author suwy
 * web data type : doBackPost1 __EVENTARGUMENT is null
 */

public class Thread4CatchDoBackPost1 {

	private static List<DoPostBack1> webList = new ArrayList<DoPostBack1>();
	
	private void addList() {
//		webList.add(new DoPostBack1("http://61.178.83.52/CMSWeb/HomePage/AjaxDataHandle.aspx",
//				"E:/downloadData/test/甘肃-2013.1.5",
//				1, 5,"S20110730202112", "", "gbk"));
		webList.add(new DoPostBack1("http://125.72.14.22:8001/HomePage/AjaxDataHandle.aspx",
				"E:/downloadData/青海1",
				1, 17,"S20130827164900", "", "gbk"));
	}
	
	private void excute() {
		for (int i = 0; i < webList.size(); i++) {
			DoPostBack1 o = new DoPostBack1(webList.get(i).getWebURL(),webList.get(i).getFolderPath(),
					webList.get(i).getStartPage(), webList.get(i).getEndPage(),webList.get(i).get__EVENTTARGET(),
					webList.get(i).get__EVENTARGUMENT(), webList.get(i).getEncode());
			new Thread(o).start();
		}
	}
	public static void main(String[] args) {
		Thread4CatchDoBackPost1 instance = new Thread4CatchDoBackPost1();
		instance.addList();
		instance.excute();
	}
}